﻿using System.Collections;
using System.Reflection;

namespace OpcDaNet.Dx
{
    public class ServerType
    {
        public static string[] Enumerate()
        {
            ArrayList arrayList = new ArrayList();
            FieldInfo[] fields = typeof(ServerType).GetFields(BindingFlags.Static | BindingFlags.Public);
            foreach (FieldInfo fieldInfo in fields)
            {
                arrayList.Add(fieldInfo.GetValue(typeof(string)));
            }
            return (string[])arrayList.ToArray(typeof(string));
        }

        public const string COM_DA10 = "COM-DA1.0";

        public const string COM_DA204 = "COM-DA2.04";

        public const string COM_DA205 = "COM-DA2.05";

        public const string COM_DA30 = "COM-DA3.0";

        public const string XML_DA10 = "XML-DA1.0";
    }
}
